// pages/announcement-detail/announcement-detail.js
const common = require('../../utils/common.js')
Page({
  data: {
    detail: {
      title: '2024年农业补贴政策发布',
      content: '最新农业补贴政策已出台，符合条件的企业可申请相关补贴...',
      time: '今天 14:30',
      typeText: '政策',
      tagClass: 'tag-primary'
    }
  },
  onLoad(options) {
    const detail = common.getStorage('currentAnnouncement')
    if (detail) {
      this.setData({ detail })
    }
  }
})

